const Mock = require("mockjs")

module.exports = {
  getUsers: () => {
    const data = Mock.mock({
      "list|50-100": [
        {
          "_id|+1": 1,
          userName: "@name",
          userPwd: "Hello",
          userEmail: "@email",
          "role|0-1": 1,
          "userState|1-3": 1,
          createTime: Mock.Random.datetime("yyyy-MM-dd HH:mm:ss"),
          lastLoginTime: Mock.Random.datetime("yyyy-MM-dd HH:mm:ss"),
        },
      ],
    });
    return data.list
  }
}